﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KBS8.Shared
{
    abstract class MapDataNode
    {
        protected List<MapDataEdge> Edges; //List of all the edges connected to the node

        protected int X; //X coordinate of the node
        protected int Y; //Y coordinate of the node

        public MapDataNode(int x, int y)
        {
            X = x;
            Y = y;
            Edges = new List<MapDataEdge>();
        }

        /// <summary>
        /// Adds an edge to the list (should only be called by edge classes)
        /// </summary>
        /// <param name="edge"></param>
        public void AddEdge(MapDataEdge edge)
        {
            Edges.Add(edge);
        }
    }
}
